using RuoVea.OmiApi.Reports.Models;
using System.ComponentModel.DataAnnotations;

namespace RuoVea.OmiApi.Reports.Dto;

/// <summary>
/// 报表查询sql输入对象
/// </summary>
public class SqlDto
{
    /// <summary>
    /// 
    /// </summary>
    [Required(ErrorMessage = "报表sql基础信息不能为空")]
    public RptSql ReportSql { get; set; }

    /// <summary>
    /// 
    /// </summary>
    [Required(ErrorMessage = "查询列不能为空")]
    public List<RptSqlColumn> ReportSqlField { get; set; }
}